<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tenplate</title>
    <style>
        [v-cloak]
        {
            display: none;    
        }
    </style>
</head>
<body>

<div id="app">
    <!-- 原生展示 -->
    <h2>{{message}} 小陈</h2>
    <!-- 防止用户响应过慢直接将 {{message}}展示出去-->
    <h2 v-cloak>{{message}}</h2>
</div>


<script src="../js/vue.js"></script>
<script>
    setTimeout(function ()
    {
        const app = new Vue
        (
            {
                el : "#app",
                data : 
                {
                    message : "hello",
                }
            }
        )
    }, 1000)

</script>
    
</body>
</html>